<script>
    import auth from "@/api/auth";

    export default {
        onLaunch: function () {
            console.warn('当前组件仅支持 uni_modules 目录结构 ，请升级 HBuilderX 到 3.1.0 版本以上！')
            console.log('App Launch');
            //初始化成功后调用连接
            auth.init().then(res => {
                this.$ws.connServer();
            })
        },
        onShow: function () {
            console.log('App Show')
        },
        onHide: function () {
            console.log('App Hide')
        },
        methods: {}
    }
</script>

<style>
    @import url("static/css/base.css");
</style>
